{% extends 'base.html' %}
<b>{{ studentInfo.StudentName }}</b> 的志愿列表
{% block head %}
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学校列表查看</title>
    <link rel="icon" href="{{ url_for('static', filename='images/favicon.ico') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" type="text/css">
{% endblock %}
{% block content %}
 <!-- 切换按钮 -->
<div class="tabs-container">
    <div class="tab" id="tab-6" onclick="showTable1(6)">西安市学校</div>
    <div class="tab" id="tab-7" style="background-color: #007BFF; color: #ffffff" onclick="showTable1(7)">未央区学校</div>
</div>
 <!-- 学校列表 -->
<div class="table-containers">
    <div class="table-container" id="table-container-7">
    <table class="schoolListTable1"  id="allSchool-table7">
        <thead>
        <tr>
                <th>学校编码</th>
                <th>学校名称</th>
                <th>预估线（学校提供）</th>
                <th>预估线（算法计算）</th>
                <th>学校性质</th>
                <th>学校级别</th>
				<th>学校区域</th>
                <th>学校地址</th>
        </tr>
        </thead>
        <tbody id="allSchool-tbody7">
			 {% for school in allSchool.Weiyang.data %}
             
				<tr>
                    {% for value in school[:-3] %}
					<td>{{ value }}</td>
                    {% endfor %}
                    <td><a href="https://uri.amap.com/marker?position={{school[-1]}},{{school[-2]}}&name={{school[1]}}&coordinate=gaode&callnative=0" target="_blank">{{school[-3]}}</a></td>
				<tr>
				{% endfor %}	
        </tbody>
        </table>
    </div>
    <div class="table-container hidden" id="table-container-6">
    <table class="schoolListTable1"  id="allSchool-table6">
        <thead>
        <tr>
                <th>学校编码</th>
                <th>学校名称</th>
                <th>预估线（学校提供）</th>
                <th>预估线（算法计算）</th>
                <th>学校性质</th>
                <th>学校级别</th>
				<th>学校区域</th>
                <th>学校地址</th>
        </tr>
        </thead>
        <tbody id="allSchool-tbody6">
            <!-- 表格 -->

			 {% for school in allSchool.alldata.data %}
				<tr>
				{% for value in school[:-3] %}
					<td>{{ value }}</td>
				{% endfor %}
                    <td><a href="https://uri.amap.com/marker?position={{school[-1]}},{{school[-2]}}&name={{school[1]}}&coordinate=gaode&callnative=0" target="_blank">{{school[-3]}}</a></td>
				<tr>
                {% endfor %}
        </tbody>
        </table>
    </div>
</div>
 <!-- 弹窗 -->
<div id="detail-popup" class="popup">
        <div class="popup-content">
            <span class="close-button">&times;</span>
            <table id="schoolInfo-table" style="width: 100%">
                <thead>
                <tr>
	            <th>学校名称</th>
                    <th>招生年份</th>
                    <th>最低分数</th>
                    <th>当年普高线</th>
                    <th>定转统分数</th>
                </tr>
                </thead>
                <tbody id="schoolInfo-tbody">
                <!-- 这里放表格内容 -->			
                </tbody>
            </table>
        </div>
    </div>
<!-- 逻辑代码 -->
<script src="{{ url_for('static', filename='js/showSchool.js') }}"> </script>
  

{% endblock %}
